<?php
require_once(dirname(__FILE__) . '/include/config.inc.php');

echo "123";

$dosql->Execute("SELECT a.*,p.content FROM  `fa_cms_archives`  as a left join `fa_cms_addonnews` as p on p.id=a.id  WHERE a.`model_id`=1   ORDER BY a.id asc", 8);
while ($row3 = $dosql->GetArray(8)) {

    $id = $row3['id'];
    echo $id . "<br>";
    $content = $row3['content'];

    if ($content) {
        //过滤图片文件
        $desc = strip_tags($content);
        $dosql->Execute("update  `fa_cms_archives`  set  description='$desc' where id='$id' ");
        echo $id . "更新成功" . "<br>";

    }
}


?>